<%@ taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt"%>
<c:if test="${pageContext.request.contextPath == '/'}">
   <c:set var="baseurl" value="" />
</c:if>
<c:if test="${pageContext.request.contextPath != '/'}">
   <c:set var="baseurl" value="${pageContext.request.contextPath }" />
</c:if>